@import "common";

// 计划份数
@no: 15;
// 全部宽度
@bodyWidth: 1rem * @no;
// 设计稿 rem
@baseFont: (750px / @no);

body {
    min-width: 320px;
    width: @bodyWidth;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background-color: #f2f2f2;
}

.search-index {
    position: fixed;
    top: 0;
    left: 50%;
    display: flex;
    transform: translate(-50%);
    width: @bodyWidth;
    height: (88rem / @baseFont);
    background-color: transparent;

    .classify {
        margin: (11rem / @baseFont) (25rem / @baseFont) (7rem / @baseFont) (24rem / @baseFont);
        width: (44rem / @baseFont);
        height: (70rem / @baseFont);
        background: url(../images/classify.png) no-repeat;
        background-size: (44rem / @baseFont) (70rem / @baseFont);
    }

    .search {
        flex: 1;

        input {
            width: 100%;
            height: (66rem / @baseFont);
            border-radius: (33rem / @baseFont);
            border: 0;
            background-color: rgba(61, 60, 60, 0.4);
            margin-top: (12rem / @baseFont);
            outline: none;
            font-size: (25rem / @baseFont);
            padding-left: (55rem / @baseFont);
            color: #757575;
        }
    }

    .login {
        margin: (10rem / @baseFont);
        width: (75rem / @baseFont);
        height: (70rem / @baseFont);
        line-height: (70rem / @baseFont);
        text-align: center;
        font-size: (25rem / @baseFont);
        color: #fff;
    }
}

.banner {
    width: (750rem / @baseFont);
    height: (368rem / @baseFont);

    img {
        width: 100%;
        height: 100%;
    }
}

.ad {
    display: flex;

    a {
        flex: 1;

        img {
            width: 100%;
            height: 100%;
        }
    }
}

.nav {
    width: (750rem / @baseFont);

    a {
        float: left;
        width: (150rem / @baseFont);
        height: (140rem / @baseFont);
        text-align: center;

        img {
            display: block;
            width: (82rem / @baseFont);
            height: (82rem / @baseFont);
            margin: (10rem / @baseFont) auto 0;
        }

        span {
            display: block;
            font-size: (25rem / @baseFont);
            color: #333;
        }
    }
}